<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--服务商管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link rel="stylesheet" href="__STATIC_URL__/static/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <script src="__STATIC_URL__/static/jquery/2.2.1/jquery.min.js"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="static/js/commen.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>

{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <div class="page-heading  mgr15 mgl15">
            <ul class="breadcrumb">
                <li>
                    当前位置是&nbsp;:&nbsp;
                </li>
                <li><a href="#">系统管理</a></li>
                <li class="active" style="color: #02b87f;"> 授权管理</li>
            </ul>
        </div>
        <div class="panel panel-default mgr15 mgl15" style="position: relative;">
            <div class="panel-heading">
                <h5 class="panel-title">微信公众号授权</h5>
            </div>
            <div class="panel-body">

            <table class="table table-bordered">
                <caption>微信公众号授权</caption>
                <tbody>
                <tr>

                    <td class="active">授权情况</td>
                    <td>{if condition="$user['auth_type'] eq 0"}继承上级公众号{else /}自有公众号{/if}：<font color="green"> {$wxopen['gh_nick_name']}</font></td>

                    <td class="active">Appid</td>
                    <td>{$wxopen['authorizer_appid']}</td>

                    <td class="active">原始ID</td>
                    <td>{$wxopen['gh_id']}</td>
                </tr>
                <tr>
                    <td class="active">公众号认证信息</td>
                    <td>{:getwxlx($wxopen['verify_type_info'])}{:getwxrz($wxopen['service_type_info'])}</td>
                    <td class="active">认证主体</td>
                    <td>{$wxopen['principal_name']}</td>
                    <td class="active">授权时间</td>
                    <td>{eq name="$wxopen['addtime']" value=""}{else/}{:date('Y-m-d H:i:s',$wxopen['addtime'])}{/eq}</td>

                </tr>
                <tr>
                    <td class="active">重新授权</td>
                    <td colspan="6"><a href="{:url('wxsystem/open_auth')}?id={$user['id']}"><img style="width:100%;height:100%;" src="https://open.weixin.qq.com/zh_CN/htmledition/res/assets/res-design-download/icon_button3_1.png"/></a>

                    </td>
                </tr>

                </tbody>
            </table>
            <div class="alert alert-danger">授权公众号前请确认您的公众号为认证服务号，且已开通模版消息功能，授权完成后不再继承上级公众号</div>

            </div>
        </div>

        <div class="panel panel-default mgr15 mgl15" style="position: relative;">
            <div class="panel-heading">
                <h5 class="panel-title">小程序授权</h5>
            </div>

            <div class="panel-body">
                <table class="table table-bordered">
                    <tbody>
                    <tr>
                        <td class="active">授权情况</td>
                        <td>{if condition="$user['auth_type'] eq 0"}继承上级小程序{else /}自有小程序{/if}：<font color="green"> {$wxopenxcx['gh_nick_name']}</font></td>
                        <td class="active">Appid</td>
                        <td>{$wxopenxcx['authorizer_appid']}</td>
                        <td class="active">原始ID</td>
                        <td>{$wxopenxcx['gh_id']}</td>
                    </tr>
                    <tr>
                        <!--<td class="active">公众号认证信息</td>-->
                        <!--<td>{:getwxlx($wxopenxcx['verify_type_info'])}{:getwxrz($wxopenxcx['service_type_info'])}</td>-->
                        <td class="active">认证主体</td>
                        <td>{$wxopenxcx['principal_name']}</td>
                        <td class="active">授权时间</td>
                        <td>{notempty name="wxopenxcx.addtime"}{:date('Y-m-d H:i:s',$wxopenxcx['addtime'])}{/notempty}</td>

                    </tr>
                    <tr>
                        <td class="active">重新授权</td>
                        <td colspan="6">
                            {neq name=":session('login_top_mid')" value="1"}
                            <a href="{:url('wxsystem/open_auth')}?id=15&auth_action=xcx"><img style="width:100%;height:100%;" src="__STATIC_URL__/static/img/icon_button3_2.png"/></a>
                            {else/}
                            演示商户，不再重新授权
                            {/neq}
                        </td>
                    </tr>

                    </tbody>
                </table>
                <div class="alert alert-danger">此为小程序专用授权</div>
            </div>

        </div>

        {include file='public/footer'/}
    </div>
</section>
<!-- 添加类别模态框（Modal） -->

<!--修改模态框-->




</body>
</html>
